/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Objects;

import GameEngine.GameConstants.Effect;
import GameEngine.GameConstants.Graphic;
import GameEngine.GameConstants.Material;
import GameEngine.Vector;

/**
 *
 * @author jh20
 */
public class GoalPoint extends GameObject {




    public GoalPoint(Vector cen, Vector s) {
        super(new Vector(1, 0), cen, s, Graphic.GOAL_POINT);
        material = Material.META_ELEMENTS;
        isTangible = false;
    }

    @Override
    public void receiveEffect(Effect e, Vector m, int power) {
        // goal point cannot be interacted with
    }

    @Override
    public void collide(GameObject o) {
        switch (o.material) {
            case PLAYER:
                lev.setVicFlag();
                changed = true;
                break;
            default:
                // nothing
                break;
        }
    }

}
